package com.cngphone.AnFetion;

public class FrameWork {
	public static boolean synchronizedwait(Object o,int timeout)
	{
		synchronized(o){
			try {
				o.wait(timeout);
				return true;
			} catch (InterruptedException e) {
				e.printStackTrace();
				return false;
			}
		}
	}
	public static void synchronizednotify(Object o)
	{
		synchronized(o){
			o.notifyAll();
		}
	}
}
